import common from '../common'
export default {
    doSearch(query) {
        return common.axiosPost('/Agoods/goodsList', query)
    },
    createGoods(query) {
        return common.axiosPost('/Agoods/addGoods', query)
    },
    editGoods(query) {
        return common.axiosPost('/Agoods/editGoods', query)
    },
    getGoodInfo(query) {
        return common.axiosPost('/Agoods/goodsInfo', query)
    },
    getCatList(query) {
        return common.axiosPost('/Agoods/catList', query)
    },
    createCat(query) {
        return common.axiosPost('/Agoods/addCat', query)
    },
    editCat(query) {
        return common.axiosPost('/Agoods/editCat', query)
    },
    getShopList(query) {
        return common.axiosPost('/Ashop/shopList', query)
    },
    getStoreList(query) {
        return common.axiosPost('/Agoods/shopStore', query)
    },
    getShopStoreList(query) {
        return common.axiosPost('/Agoods/shopStore', query)
    },
    doShelve(query) {
        return common.axiosPost('/Agoods/toggleGoods', query)
    }

}
